import { BrowserRouter } from "react-router-dom";
import Layout from "@/layout";
import './App.css'
import store from "@/store";
import { Provider } from "react-redux";
import { ConfigProvider } from 'antd';

const RouterBase = import.meta.env.REACT_APP_ROUTER_BASE || "/"

function App() {    
  return (
    <BrowserRouter basename={RouterBase}>
      <Provider store={store}>
        <ConfigProvider>
          <Layout />
        </ConfigProvider>
      </Provider >
    </BrowserRouter>
  );
}

export default App;
